import http from './http.js'

const publishInform = (data) =>{
    const path = "inform/inform/"
    return http.post(path, data)
}
const getInformList =(page=1) =>{
    const path = "inform/inform/?page=" + page
    return http.get(path)
}
const deleteInform =(id) =>{
    const path = "inform/inform/" + id + "/"
    return http.delete(path)
}
const getInformDetail =(id) =>{
    const path = "inform/inform/" + id + "/"
    return http.get(path)
}
const readInform =(id) =>{
    const path = "inform/read/"
    return http.post(path, {'inform_pk':id})
}
export default {
    publishInform,
    getInformList,
    deleteInform,
    getInformDetail,
    readInform,
}